home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 32
/
PC Gamer IT CD 32 1-2.iso
/
ELINK
/
14-DAY
/
CLARISHP
/
_SETUP.1
/
HOMEPAGE.exe
/
1009
/
154
< prev
next >
Wrap
Text File
|
1997-02-20
|
15KB
|
526 lines
// -----
// HLibWind.txt = VDL154.txt
// Copyright 1996 Claris
// -----
//Library
/************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
/************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
/************************** LOCALIZED STRING CONSTANTS BEGIN **************************************/
//This section contains all localizable string constants for this VDL program. Be sure to
//include the backslash character at the end of each line of a multi-line string, except for the last line.
//You may also flatten multiline constants into a single line, if you prefer
#define kLit1 "Edit Page"
#define kLit2 "Preview Page"
#define kLit3 "Edit HTML Source"
#define kLit4 "New Entry"
#define kLit5 "Object Editor"
#define kLit6 "Link Editor"
#define kLit7 "Insert Anchor"
#define kLit8 "Insert Link To File"
#define kLit9 "Insert Image"
#define kLit10 "Insert Horizontal Rule"
#define kLit11 "Insert Table"
#define kLit12 "Align Text Left "
#define kLit13 "Align Text Center"
#define kLit14 "Align Text Right"
#define kLit15 "Paragraph Format"
#define kLit16 "Normal"
#define kLit17 "Preformatted"
#define kLit18 "Address"
#define kLit19 "Heading 1"
#define kLit20 "Heading 2"
#define kLit21 "Heading 3"
#define kLit22 "Heading 4"
#define kLit23 "Heading 5"
#define kLit24 "Heading 6"
#define kLit25 "Bullet List"
#define kLit26 "Numbered List"
#define kLit27 "Term"
#define kLit28 "Definition"
#define kLit29 "Make Bullet List Entry"
#define kLit30 "Indent"
#define kLit31 "Outdent"
#define kLit32 "Smaller Text"
#define kLit33 "Larger Text"
#define kLit34 "Bold"
#define kLit35 "Italic"
#define kLit36 "Teletype"
#define kLit37 "Make Numbered List Entry"
//Localized Fonts
#if Platform_Mac
#define kHelpFont Font = {Geneva, 9, {Italic}}
#endif
/************************** LOCALIZED STRING CONSTANTS END **************************************/
/************************** LOCALIZED STRING CONSTANTS END **************************************/
/************************** LOCALIZED STRING CONSTANTS END **************************************/
/************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
/************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
/************************** LOCALIZED NUMERICAL CONSTANTS BEGIN **************************************/
//This section contains integer constants that are used to format this VDL program.
//These are localizable - they only need to be changed if the localized strings
//are sufficiently longer than the US strings. Localize the strings first, then the constants.
//This is the width of the popup menu controlling paragraph style.
#define kParagraphStylePopupWidth 124
#if Platform_Mac
#define kHelpViewWidth 300
#define kHelpViewHeight 20
#endif
/************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
/************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
/************************** LOCALIZED NUMERICAL CONSTANTS END **************************************/
//No further localizable data past this point
/************************** END LOCALIZABLE DATA ***************************************************/
/************************** END LOCALIZABLE DATA ***************************************************/
/************************** END LOCALIZABLE DATA ***************************************************/
#ifdef TryMe
#define LITE_VERSION 1
#endif
#define kStandardPadSpace 9
#define EH EnabledHelpString =
#if Platform_Mac
#define ToolSep GenericView("ToolSepView");
#else
#define ToolSep
#endif
#if Platform_Mac
#define LibBack BackColor = {57015, 57015, 57015}
#define LibMargin Margin(2,2,2,3, Custom = "HeaderBarMarginProc", Width = UseParent)
#else
#define LibBack BackColor = Dialog
#define LibMargin Margin(2,2,2,3, Width = UseParent)
#endif
Define(Buttons)
HList(LibBack)
{
ToolSep
HList()
{
PictRadioButton( "editMode", 0, // ccEditMode : kEditVisual
EH kLit1 )
{
On (Draw, 'cicn', 13550);
Off(Draw, 'cicn', 13010);
DisabledOn (Draw, 'cicn', 13561);
DisabledOff(Draw, 'cicn', 13561);
TrackingOn (Draw, 'cicn', 13550);
TrackingOff(Draw, 'cicn', 13550);
};
ToolSep
PictRadioButton( "editMode", 1, // ccEditMode : kBrowseMode
EH kLit2 )
{
On (Draw, 'cicn', 13551);
Off(Draw, 'cicn', 13030);
DisabledOn (Draw, 'cicn', 13562);
DisabledOff(Draw, 'cicn', 13562);
TrackingOn (Draw, 'cicn', 13551);
TrackingOff(Draw, 'cicn', 13551);
};
#if !LITE_VERSION
ToolSep
PictRadioButton( "editMode", 2, // ccEditMode : kHTMLMode
EH kLit3 )
{
On (Draw, 'cicn', 13552);
Off(Draw, 'cicn', 13050);
DisabledOn (Draw, 'cicn', 13563);
DisabledOff(Draw, 'cicn', 13563);
TrackingOn (Draw, 'cicn', 13552);
TrackingOff(Draw, 'cicn', 13552);
};
#endif
}
ToolSep
Spacer(Height = UseParent, Width = kStandardPadSpace);
ToolSep
PictPushButton(3301, "None", EH kLit4) // ccNewLibraryEntry
{
Enabled (Draw, 'cicn', 10200);
Disabled(Draw, 'cicn', 10202);
Tracking(Draw, 'cicn', 10201);
};
ToolSep
Spacer(Height = UseParent, Width = kStandardPadSpace);
ToolSep
PictPushButton(3101, "None", EH kLit5) // Object Editor
{
Enabled(Draw, 'cicn',13503 );
Disabled(Draw, 'cicn',13505 );
Tracking(Draw, 'cicn',13504 );
};
ToolSep
PictPushButton(3109, "None", EH kLit6) // "Insert/Edit Link"
{
Enabled(Draw, 'cicn',13506 );
Disabled(Draw, 'cicn',13508 );
Tracking(Draw, 'cicn',13507 );
};
ToolSep
Spacer(Height = UseParent, Width = kStandardPadSpace);
ToolSep
PictPushButton(3013, "None", Draggable, EH kLit7)
{
Enabled(Draw, 'cicn',13012 );
Disabled(Draw, 'cicn',13052 );
Tracking(Draw, 'cicn',13032 );
};
ToolSep
PictPushButton(3012, "None", Draggable, EH kLit8)
{
Enabled(Draw, 'cicn',13011 );
Disabled(Draw, 'cicn',13051 );
Tracking(Draw, 'cicn',13031 );
};
ToolSep
Spacer(Height = 1, Width = kStandardPadSpace);
ToolSep
PictPushButton(3081, "None", EH kLit9)
{
Enabled(Draw, 'cicn',13005 );
Disabled(Draw, 'cicn',13045 );
Tracking(Draw, 'cicn',13025 );
};
ToolSep
PictPushButton(3080, "None", Draggable, EH kLit10)
{
Enabled(Draw, 'cicn',13003 );
Disabled(Draw, 'cicn',13043 );
Tracking(Draw, 'cicn',13023 );
};
ToolSep
PictPushButton(3091, "None", Draggable, EH kLit11)
{
Enabled(Draw, 'cicn',13060 );
Disabled(Draw, 'cicn',13062 );
Tracking(Draw, 'cicn',13061 );
};
ToolSep
Spacer(Height = 1, Width = kStandardPadSpace);
/* Text Alignment buttons */
ToolSep
PictRadioButton("hAlign", 0, EH kLit12)
{
On (Draw, 'cicn', 10019);
Off(Draw, 'cicn', 10016);
DisabledOn (Draw, 'cicn', 10022);
DisabledOff(Draw, 'cicn', 10022);
TrackingOn (Draw, 'cicn', 10019);
TrackingOff(Draw, 'cicn', 10019);
};
ToolSep
PictRadioButton("hAlign", 1, EH kLit13)
{
On (Draw, 'cicn', 10020);
Off(Draw, 'cicn', 10017);
DisabledOn (Draw, 'cicn', 10023);
DisabledOff(Draw, 'cicn', 10023);
TrackingOn (Draw, 'cicn', 10020);
TrackingOff(Draw, 'cicn', 10020);
};
ToolSep
PictRadioButton("hAlign", 2, EH kLit14)
{
On (Draw, 'cicn', 10021);
Off(Draw, 'cicn', 10018);
DisabledOn (Draw, 'cicn', 10024);
DisabledOff(Draw, 'cicn', 10024);
TrackingOn (Draw, 'cicn', 10021);
TrackingOff(Draw, 'cicn', 10021);
};
ToolSep
} // HList (Buttons)
Define(StyleBar)
HList(LibBack)
{
Margin(0,0,7,0)
IntegerPopup( "", 0, "pStyle", Width = kParagraphStylePopupWidth,
EH kLit15, DontBind )
{
IntItem( kLit16, 0); // hpPlain
IntItem( kLit17, 1); // hpPreformatted
IntItem( kLit18, 2); // hpAddress
IntItem( kLit19, 3); // hpHead1
IntItem( kLit20, 4); // hpHead2
IntItem( kLit21, 5); // hpHead3
IntItem( kLit22, 6); // hpHead4
IntItem( kLit23, 7); // hpHead5
IntItem( kLit24, 8); // hpHead6
IntItem( kLit25, 9); // hpBullet
IntItem( kLit26, 12); // hpNumbered
IntItem( kLit27, 14); // hpTerm
IntItem( kLit28, 13); // hpDefinition
};
HList(FullyCovered)
{
ToolSep
PictPushButton(3115, "None", Draggable, EH kLit37) //ccNumberedListEntry
{
Enabled (Draw, 'cicn', 14050);
Disabled(Draw, 'cicn', 14052);
Tracking(Draw, 'cicn', 14051);
};
ToolSep
PictPushButton(3090, "None", Draggable, EH kLit29) // ccBulletListEntry
{
Enabled (Draw, 'cicn', 13509);
Disabled(Draw, 'cicn', 13511);
Tracking(Draw, 'cicn', 13510);
};
ToolSep
Spacer(Height = UseParent, Width = kStandardPadSpace);
ToolSep
PictPushButton(3024, "None", EH kLit30) // ccIndentRight
{
Enabled (Draw, 'cicn', 14001);
Disabled(Draw, 'cicn', 14000);
Tracking(Draw, 'cicn', 14002);
};
ToolSep
PictPushButton(3023, "None", EH kLit31) // ccIndentLeft
{
Enabled (Draw, 'cicn', 14004);
Disabled(Draw, 'cicn', 14003);
Tracking(Draw, 'cicn', 14005);
};
ToolSep
Spacer(Height = UseParent, Width = kStandardPadSpace);
ToolSep
PictPushButton(3027, "None", EH kLit32) // ccDecreaseSize
{
Enabled (Draw, 'cicn', 14007);
Disabled(Draw, 'cicn', 14006);
Tracking(Draw, 'cicn', 14008);
};
ToolSep
PictPushButton(3026, "None", EH kLit33) // ccIncreaseSize
{
Enabled (Draw, 'cicn', 14010);
Disabled(Draw, 'cicn', 14009);
Tracking(Draw, 'cicn', 14011);
};
ToolSep
Spacer(Height = UseParent, Width = kStandardPadSpace);
ToolSep
PictPushButton(3031, "None", EH kLit34) // ccHCharBits + bold
{
Enabled (Draw, 'cicn', 14013);
Disabled(Draw, 'cicn', 14012);
Tracking(Draw, 'cicn', 14014);
};
ToolSep
PictPushButton(3032, "None", EH kLit35) // ccHCharBits + italic
{
Enabled (Draw, 'cicn', 14016);
Disabled(Draw, 'cicn', 14015);
Tracking(Draw, 'cicn', 14017);
};
ToolSep
PictPushButton(3033, "None", EH kLit36) // ccHCharBits + teletype
{
Enabled (Draw, 'cicn', 14019);
Disabled(Draw, 'cicn', 14018);
Tracking(Draw, 'cicn', 14020);
};
ToolSep
Spacer(Height = UseParent, Width = kStandardPadSpace);
#if Platform_Mac
VList(Height = UseParent)
{
Spacer(Height = 2, Width = UseParent);
GenericView("TextColorPopup");
Spacer(Height = UseParent, Width = UseParent);
}
#else
GenericView("TextColorPopup");
#endif
} // Second row buttons
} // HList (StyleBar)
Margin( 0,0,0,0, LibBack, Height = UseParent,
Width = UseParent )
VList(Height = UseParent, Width = UseParent)
{
Switch(showToolbars, Width = UseParent)
{
case 0: // tmNone
case 2: // tmInFrame
Switch (styleToolbars)
{
case 1: // tmInWindow
VList(Width = UseParent)
{
LibMargin
Margin( 4,3,3,5, LibBack,
Width = UseParent )
Call(StyleBar);
#if Platform_Win
Spacer(Height = 1, Width = UseParent, BackColor = DkGray);
Spacer(Height = 1, Width = UseParent, BackColor = Black);
#endif
}
default:
Spacer(Width=0,Height=0);
}
case 1: // tmInWindow
LibMargin
Margin( 4,3,3,5, LibBack,
Width = UseParent )
VList(Width = UseParent)
{
HList(Width = UseParent)
{
Call(Buttons);
Spacer(Height = UseParent, Width = kStandardPadSpace);
#if Platform_Mac
HelpView(Width = kHelpViewWidth, Height = kHelpViewHeight, kHelpFont);
#endif
}
Switch (styleToolbars)
{
case 1: // tmInWindow
VList()
{
Spacer(Width=0, Height=6);
Call(StyleBar);
}
default:
Spacer(Width=0,Height=0);
}
#if Platform_Win
Spacer(Height = 1, Width = UseParent, BackColor = DkGray);
Spacer(Height = 1, Width = UseParent, BackColor = Black);
#endif
} // VList
}
VSplit(Height = UseParent, Width = UseParent,
MinLeftPixels = 75, MinRightPixels = 75)
{
//Upper View
Tag(ListView)
GenericView("LibraryListProc");
//Splitter
HList(Width = UseParent, BackColor = {0xEEEE, 0xEEEE, 0xEEEE})
{
// Spacer(Width = 5);
#if Platform_Mac
VList(Width = UseParent)
#else
VList(Width = UseParent, BackColor = {45000,45000,45000} )
#endif
{
Spacer(Height = 1, BackColor = {0, 0, 0});
Spacer(Height = 1, BackColor = {65535, 65535, 65535});
#if Platform_Mac
Spacer(Height = 2, BackColor = {0xEEEE, 0xEEEE, 0xEEEE});
#else
Spacer(Height = 3, BackColor = {45000,45000,45000});
#endif
HList(Width = UseParent)
{
Spacer(Height = UseParent, Width = 5);
#if Platform_Mac
Spacer(Height = 1, BackColor = {65535, 65535, 65535});
#else
Spacer(Height = 1, BackColor = {45000, 45000, 45000});
#endif
Spacer(Height = UseParent, Width = 5);
}
#if Platform_Mac
HList(Width = UseParent)
{
Spacer(Height = UseParent, Width = 5);
Spacer(Height = 1, BackColor = {0x6666, 0x6666, 0x6666});
Spacer(Height = UseParent, Width = 5);
}
HList(Width = UseParent)
{
Spacer(Height = UseParent, Width = 5);
Spacer(Height = 1, BackColor = {65535, 65535, 65535});
Spacer(Height = UseParent, Width = 5);
}
HList(Width = UseParent)
{
Spacer(Height = UseParent, Width = 5);
Spacer(Height = 1, BackColor = {0x6666, 0x6666, 0x6666});
Spacer(Height = UseParent, Width = 5);
}
Spacer(Height = 3, BackColor = {0xEEEE, 0xEEEE, 0xEEEE});
Spacer(Height = 1, BackColor = {0x8888, 0x8888, 0x8888});
#else
//Main bar
Spacer(Height = 1, BackColor = {0x6666, 0x6666, 0x6666});
Spacer(Height = 1, BackColor = {65535, 65535, 65535});
Spacer(Height = 1, BackColor = {0x6666, 0x6666, 0x6666});
Spacer(Height = 3, BackColor = {45000, 45000, 45000});
Spacer(Height = 1, BackColor = {25000, 25000, 25000});
#endif
Spacer(Height = 1, BackColor = {0, 0, 0});
}
// Spacer(Width = 5);
}
//Lower Pane
GenericView("LibraryViewProc");
} //VSplit
} //VList